<?php

function getSkills() {
	$mySkills = null;

	if (isset($_SESSION[ALL_SKILLS]) && !empty($_SESSION[ALL_SKILLS]) && !isset($_GET['refresh']))
		$mySkills = $_SESSION[ALL_SKILLS];
	else {
		$mySkills = Skill::getAllOrderedByFamilyAndGroup();
		$_SESSION[ALL_SKILLS] = $mySkills;
	}
	return $mySkills;
}

?>